@include('store.common.header')
<!--tab nav start-->
<section class="panel">
    <header class="panel-heading tab-bg-dark-navy-blue ">
        <ul class="nav nav-tabs">
            <li @if ($_active['_action'] == 'list')  class="active" @endif>
                <a href="/store/nav">栏目列表</a>
            </li>
            <li @if ($_active['_action'] == 'add')  class="active" @endif>
                <a href="/store/nav/add">添加栏目</a>
            </li>
        </ul>
    </header>
    <div class="panel-body">
        <div class="tab-content">
            <div class="row">
                <div class="col-lg-12">
                    <section class="panel">
                        @if(count($nav) == 0)
                            <div class="no-data">暂无要查询的内容</div>
                        @else
                            <table class="table table-striped table-advance table-hover">
                                <thead>
                                <tr>
                                    <th>名称</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($nav as $n)
                                    <tr>
                                        <td>{{ $n->name }}</td>
                                        <td>
                                            <a href="/store/goods/info/{{ $n->id }}" target="_blank" class="btn btn-primary btn-xs update" gid="{{ $n->id }}"><i class="icon-pencil"></i></a>

                                            <button href="/store/goods/delete/{{ $n->id }}" class="delete btn btn-danger btn-xs"><i class="icon-trash "></i></button>
                                        </td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                        @endif
                    </section>
                </div>
            </div>
        </div>
    </div>
</section>
<!--tab nav start-->

@include('store.common.footer')